package com.chushouya.manager.dto.admin.user.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("code换取小程序用户id")
public class Code2SessionDTO {

    @ApiModelProperty(value = "登录code", required = true)
    @NotBlank(message = "code不能为空")
    private String code;

    @ApiModelProperty(value = "小程序id", required = true)
    @NotBlank(message = "appid不能为空")
    private String appId;

    @ApiModelProperty(value = "平台", required = true)
    @NotBlank(message = "platform不能为空")
    private String platform;


}
